package Reader;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.Arrays;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream("D:\\test\\a.java"));
        byte[]b = new byte[1024];//本地
        int len=-1;
        while ((len=bufferedInputStream.read(b))!=-1){
            System.out.println(Arrays.toString(b));
        }
    }
}
